﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NFine.Data;
using NFine.Domain.Entity.ProductManage;

namespace NFine.Domain.IRepository.ProductManage
{
    public interface IProductRepository : IRepositoryBase<ProductEntity>
    {
        /// <summary>
        /// 保存商品
        /// </summary>
        /// <param name="pEntity">商品</param>
        /// <param name="keyValue">商品id</param>
        /// <param name="list">商品属性list</param>
        /// <param name="newPath"></param>
        /// <param name="selectedSku">商品规格信息</param>
        int SubmitForm(ProductEntity pEntity, string keyValue, string newPath);
        /// <summary>
        /// 删除商品
        /// </summary>
        /// <param name="keyValues">商品id ，分割</param>
        /// <returns></returns>
        int DeleteProducts(string keyValues);
        /// <summary>
        /// 上架/下架商品
        /// </summary>
        /// <param name="ids"></param>
        /// <param name="flag"></param>
        /// <returns></returns>
        int inStock(string ids, int flag);
        /// <summary>
        /// 批量审核商品
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        int auditProducts(string ids);

    }
}
